package com.osmino.contacts.groups.add;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import com.osmino.contacts.R;
import com.osmino.contacts.list.ContactViewBaseItem;
import com.osmino.core.utils.view.Backgroung;

public class IconItem extends ContactViewBaseItem {

	public IconItem(Context context) {
		super(context, null);
	}

	@Override
	public void onClick(View v) {//		
	}

	@Override
	public void setImagesTo(ImageView iv1, ImageView iv2) {
		iv1.setImageDrawable(null);
		Backgroung.setResource(iv2, R.drawable.contact_view_drop_ic_down, R.drawable.contact_view_drop_ic_down_active);
	}
	
	public void setIcon(String iconName) {
		tv1.setText(iconName);
		tv2.setText(R.string.icon);
	}

}
